.class public Lcom/waiqin365/base/view/PhoneNumEditText;
.super Landroid/widget/LinearLayout;


# instance fields
.field private a:Landroid/widget/EditText;

.field private b:Landroid/widget/ImageView;

.field private c:I

.field private d:Landroid/text/TextWatcher;

.field private e:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->c:I

    iput-boolean v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->e:Z

    invoke-direct {p0}, Lcom/waiqin365/base/view/PhoneNumEditText;->c()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    iput v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->c:I

    iput-boolean v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->e:Z

    invoke-direct {p0}, Lcom/waiqin365/base/view/PhoneNumEditText;->c()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/base/view/PhoneNumEditText;I)I
    .locals 0

    iput p1, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->c:I

    return p1
.end method

.method static synthetic a(Lcom/waiqin365/base/view/PhoneNumEditText;)Landroid/widget/EditText;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    return-object v0
.end method

.method static synthetic a(Lcom/waiqin365/base/view/PhoneNumEditText;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->e:Z

    return p1
.end method

.method static synthetic b(Lcom/waiqin365/base/view/PhoneNumEditText;)Landroid/widget/ImageView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->b:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic c(Lcom/waiqin365/base/view/PhoneNumEditText;)Landroid/text/TextWatcher;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->d:Landroid/text/TextWatcher;

    return-object v0
.end method

.method private c()V
    .locals 9

    const/16 v8, 0x10

    const/high16 v7, 0x41c00000    # 24.0f

    const/4 v4, 0x1

    const/high16 v6, 0x40c00000    # 6.0f

    const/4 v5, 0x0

    new-instance v0, Landroid/text/SpannableString;

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v1

    const v2, 0x7f08032e

    invoke-virtual {v1, v2}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V

    new-instance v1, Landroid/text/style/AbsoluteSizeSpan;

    const/16 v2, 0xf

    invoke-direct {v1, v2, v4}, Landroid/text/style/AbsoluteSizeSpan;-><init>(IZ)V

    invoke-virtual {v0}, Landroid/text/SpannableString;->length()I

    move-result v2

    const/16 v3, 0x21

    invoke-virtual {v0, v1, v5, v2, v3}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    new-instance v1, Landroid/widget/EditText;

    invoke-virtual {p0}, Lcom/waiqin365/base/view/PhoneNumEditText;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Landroid/widget/EditText;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    const/4 v2, 0x2

    invoke-virtual {v1, v2}, Landroid/widget/EditText;->setInputType(I)V

    iget-object v1, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    invoke-virtual {v1, v5}, Landroid/widget/EditText;->setBackgroundColor(I)V

    iget-object v1, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    const/high16 v2, 0x41900000    # 18.0f

    invoke-virtual {v1, v2}, Landroid/widget/EditText;->setTextSize(F)V

    iget-object v1, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    invoke-virtual {v1, v4}, Landroid/widget/EditText;->setMaxLines(I)V

    iget-object v1, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    invoke-virtual {v1, v8}, Landroid/widget/EditText;->setGravity(I)V

    iget-object v1, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    const-string/jumbo v2, "#1a1a1a"

    invoke-static {v2}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/widget/EditText;->setTextColor(I)V

    iget-object v1, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    invoke-virtual {v1, v5, v5, v5, v5}, Landroid/widget/EditText;->setPadding(IIII)V

    iget-object v1, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    new-instance v2, Landroid/text/SpannedString;

    invoke-direct {v2, v0}, Landroid/text/SpannedString;-><init>(Ljava/lang/CharSequence;)V

    invoke-virtual {v1, v2}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    const-string/jumbo v1, "#cccccc"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setHintTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    new-array v1, v4, [Landroid/text/InputFilter;

    new-instance v2, Landroid/text/InputFilter$LengthFilter;

    const/16 v3, 0xd

    invoke-direct {v2, v3}, Landroid/text/InputFilter$LengthFilter;-><init>(I)V

    aput-object v2, v1, v5

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setFilters([Landroid/text/InputFilter;)V

    new-instance v0, Landroid/widget/ImageView;

    invoke-virtual {p0}, Lcom/waiqin365/base/view/PhoneNumEditText;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->b:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->b:Landroid/widget/ImageView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->b:Landroid/widget/ImageView;

    invoke-virtual {p0}, Lcom/waiqin365/base/view/PhoneNumEditText;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v1

    invoke-virtual {p0}, Lcom/waiqin365/base/view/PhoneNumEditText;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v2

    invoke-virtual {p0}, Lcom/waiqin365/base/view/PhoneNumEditText;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-static {v3, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v3

    invoke-virtual {p0}, Lcom/waiqin365/base/view/PhoneNumEditText;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-static {v4, v6}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v4

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/widget/ImageView;->setPadding(IIII)V

    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->b:Landroid/widget/ImageView;

    sget-object v1, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->b:Landroid/widget/ImageView;

    const v1, 0x7f02016b

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v1, -0x2

    invoke-direct {v0, v5, v1}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    const/16 v1, 0x11

    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->gravity:I

    const/high16 v1, 0x3f800000    # 1.0f

    iput v1, v0, Landroid/widget/LinearLayout$LayoutParams;->weight:F

    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    invoke-virtual {p0}, Lcom/waiqin365/base/view/PhoneNumEditText;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2, v7}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v2

    invoke-virtual {p0}, Lcom/waiqin365/base/view/PhoneNumEditText;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-static {v3, v7}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v3

    invoke-direct {v1, v2, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iput v8, v1, Landroid/widget/LinearLayout$LayoutParams;->gravity:I

    invoke-virtual {p0}, Lcom/waiqin365/base/view/PhoneNumEditText;->getContext()Landroid/content/Context;

    move-result-object v2

    const/high16 v3, 0x41200000    # 10.0f

    invoke-static {v2, v3}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v2

    iput v2, v1, Landroid/widget/LinearLayout$LayoutParams;->leftMargin:I

    iget-object v2, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    invoke-virtual {p0, v2, v0}, Lcom/waiqin365/base/view/PhoneNumEditText;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->b:Landroid/widget/ImageView;

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/base/view/PhoneNumEditText;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    invoke-direct {p0}, Lcom/waiqin365/base/view/PhoneNumEditText;->d()V

    return-void
.end method

.method private d()V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->b:Landroid/widget/ImageView;

    new-instance v1, Lcom/waiqin365/base/view/o;

    invoke-direct {v1, p0}, Lcom/waiqin365/base/view/o;-><init>(Lcom/waiqin365/base/view/PhoneNumEditText;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    new-instance v1, Lcom/waiqin365/base/view/p;

    invoke-direct {v1, p0}, Lcom/waiqin365/base/view/p;-><init>(Lcom/waiqin365/base/view/PhoneNumEditText;)V

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setOnKeyListener(Landroid/view/View$OnKeyListener;)V

    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    new-instance v1, Lcom/waiqin365/base/view/q;

    invoke-direct {v1, p0}, Lcom/waiqin365/base/view/q;-><init>(Lcom/waiqin365/base/view/PhoneNumEditText;)V

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    return-void
.end method

.method static synthetic d(Lcom/waiqin365/base/view/PhoneNumEditText;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->e:Z

    return v0
.end method

.method static synthetic e(Lcom/waiqin365/base/view/PhoneNumEditText;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->c:I

    return v0
.end method


# virtual methods
.method public a()Ljava/lang/String;
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v1, " "

    const-string/jumbo v2, ""

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public a(Landroid/text/TextWatcher;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->d:Landroid/text/TextWatcher;

    return-void
.end method

.method public a(Z)V
    .locals 2

    const/16 v1, 0x8

    if-eqz p1, :cond_1

    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->b:Landroid/widget/ImageView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->b:Landroid/widget/ImageView;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0
.end method

.method public b()V
    .locals 4

    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    new-instance v1, Lcom/waiqin365/base/view/r;

    invoke-direct {v1, p0}, Lcom/waiqin365/base/view/r;-><init>(Lcom/waiqin365/base/view/PhoneNumEditText;)V

    const-wide/16 v2, 0xc8

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    return-void
.end method

.method public setEditFocusListener(Landroid/view/View$OnFocusChangeListener;)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setOnFocusChangeListener(Landroid/view/View$OnFocusChangeListener;)V

    return-void
.end method

.method public setHint(Ljava/lang/String;)V
    .locals 5

    new-instance v0, Landroid/text/SpannableString;

    invoke-direct {v0, p1}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V

    new-instance v1, Landroid/text/style/AbsoluteSizeSpan;

    const/16 v2, 0xf

    const/4 v3, 0x1

    invoke-direct {v1, v2, v3}, Landroid/text/style/AbsoluteSizeSpan;-><init>(IZ)V

    const/4 v2, 0x0

    invoke-virtual {v0}, Landroid/text/SpannableString;->length()I

    move-result v3

    const/16 v4, 0x21

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    iget-object v1, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    new-instance v2, Landroid/text/SpannedString;

    invoke-direct {v2, v0}, Landroid/text/SpannedString;-><init>(Ljava/lang/CharSequence;)V

    invoke-virtual {v1, v2}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public setHintColor(I)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setHintTextColor(I)V

    return-void
.end method

.method public setText(Ljava/lang/String;)V
    .locals 2

    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    iget-object v1, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setSelection(I)V

    return-void
.end method

.method public setTextColor(I)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setTextColor(I)V

    return-void
.end method

.method public setTextSize(F)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/base/view/PhoneNumEditText;->a:Landroid/widget/EditText;

    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setTextSize(F)V

    return-void
.end method
